package com.nbcio.modules.estar.customerpriceh.service;

import com.nbcio.modules.estar.customerpriceh.entity.CustomerpriceB;
import com.nbcio.modules.estar.customerpriceh.entity.CustomerpriceH;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 客户价格
 * @Author: nbacheng
 * @Date:   2024-05-08
 * @Version: V1.0
 */
public interface ICustomerpriceHService extends IService<CustomerpriceH> {

	/**
	 * 添加一对多
	 *
	 */
	public void saveMain(CustomerpriceH customerpriceH,List<CustomerpriceB> customerpriceBList) ;

	/**
	 * 修改一对多
	 *
	 */
	public void updateMain(CustomerpriceH customerpriceH,List<CustomerpriceB> customerpriceBList);

	/**
	 * 删除一对多
	 */
	public void delMain (String id);

	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**
	 * 关联业务流程
	 */
	public void relationAct(String dataId);

	BigDecimal getPrice(String customerId, String goodsclass, String goodsid, BigDecimal bigDecimal);
}
